<%--
  Created by IntelliJ IDEA.
  User: teacher
  Date: 2022/4/13
  Time: 14:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>访问次数</title>
</head>
<body>
<h1>当前访问了<%=session.getAttribute("count")%>次</h1>
<a href="<%=response.encodeURL(request.getContextPath()+"/count")%>">URL重写方式一</a><br/>
<a href="<%=response.encodeRedirectURL(request.getContextPath()+"/count")%>">URL重写方式二</a><br/>
</body>
</html>
